<template>
<div class="">
  <router-link to="/debate" class="weui_btn weui_btn_warn" style="border-radius: 0">测试页面</router-link>
  <router-link to="/" class="weui_btn weui_btn_plain_default">Home</router-link>
  <router-link to="/debate" class="weui_btn weui_btn_plain_default">Debate</router-link>
  <router-link to="" class="weui_btn weui_btn_plain_default">{{items[0].group_id}}</router-link>
  <router-link to="" class="weui_btn weui_btn_plain_default">{{items[1].group_id}}</router-link>
  <div class="" style="text-align: center;">
  <pre style="line-height: 1.25; white-space: pre;">
        \          SORRY            /
         \                         /
          \    This page does     /
           ]   not exist yet.    [    ,'|
           ]                     [   /  |
           ]___               ___[ ,'   |
           ]  ]\             /[  [ |:   |
           ]  ] \           / [  [ |:   |
           ]  ]  ]         [  [  [ |:   |
           ]  ]  ]__     __[  [  [ |:   |
           ]  ]  ] ]\ _ /[ [  [  [ |:   |
           ]  ]  ] ] (#) [ [  [  [ :===='
           ]  ]  ]_].nHn.[_[  [  [
           ]  ]  ]  HHHHH. [  [  [
           ]  ] /   `HH("N  \ [  [
           ]__]/     HHH  "  \[__[
           ]         NNN         [
           ]         N/"         [
           ]         N H         [
          /          N            \
         /           q,            \
        /                           \
</pre>
</div>
</div>
</template>

<script>
import Config from '../config/Config';
import User from '../service/User';
import data from '../data/data.json';
import simRecdata from '../data/simRecdata.json';

export default {
  data() {
    return {
      items: data.items,
      sentenceList: simRecdata.sentenceList,
      groupCount: []
    };
  },
  /**
   * created
   */
  created() {
    // 初始化用户信息
    // User.initAccessInfo();
  },
  /**
   * mounted
   */
  mounted() {
    let arr = ['a', 'b', 'c'];
    for (let [i, item] of new Map(arr.map((item, i) => [i, item]))) {
      console.log(i, item);
    }
    // test
    let arrayL = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
    arrayL = arrayL.sort(() => 0.5 - Math.random());
    console.log('arrayL1', arrayL);
    arrayL = arrayL.splice(1, 4);
    console.log('arrayL2', arrayL);
  }
}
</script>
